#pragma once
// CHtmlEditCtrlEx control

class CHtmlEditCtrlEx : public CHtmlEditCtrl
{
public:
	CHtmlEditCtrlEx() { m_fEnableContextMenu=true; };    
	virtual ~CHtmlEditCtrlEx()  {};

	BOOL CreateFromStatic( UINT nID, CWnd* pParent );
	void EnableContextMenu( BOOL fEnab ) { m_fEnableContextMenu= fEnab; };
	HRESULT SetDocumentTitle( CString szTitle );
	HRESULT GetDocumentHTML( CString& sHtml ); // override discards BOM
	HRESULT SetDocumentHTML( CString& sHtml ); // override discards BOM
	HRESULT SetDocumentHTML( CString& sHtml, BOOL bWait ); // override discards BOM
	HRESULT WaitForComplete();

protected:
	BOOL m_fEnableContextMenu;
	DECLARE_MESSAGE_MAP()

public:
	virtual BOOL PreTranslateMessage(MSG* pMsg); // context menu suppression
};
